import java.util.Scanner;

/**
 * Created by asus on 2017/6/3.
 */
public class Achv {
    public static void main(String[] args) {
        LevelTwo two = new LevelTwo();
        LevelOne one = new LevelOne();
        LevelThree three = new LevelThree();
        Postfix b = new Postfix();
        String another = "Y";
        Scanner scan = new Scanner(System.in);
        while (another.equalsIgnoreCase("Y")){
            System.out.println("Which level do you need?");
            System.out.println("We have 1 , 2 , 3");
            int level = scan.nextInt();
            if (level==1||level==2||level==3){
                if (level==1){
                    one.project();
                    System.out.println("True:"+one.count);
                    System.out.println("Do you want to try again?(Y/N)");
                    another = scan.nextLine();
                    another = scan.nextLine();
                }
                if (level==2){
                    two.project();
                    System.out.println("True:"+two.count);
                    System.out.println("Do you want to try again?(Y/N)");
                    another = scan.nextLine();
                    another = scan.nextLine();
                }
                if (level==3){
                    three.Level();
                    System.out.println("True:"+three.count);
                    System.out.println("Do you want to try again?(Y/N)");
                    another = scan.nextLine();
                    another = scan.nextLine();
                }
            }
            else {
                System.out.println("Wrong message");
                System.out.println("Do you want to try again?(Y/N)");
                another = scan.nextLine();
                another = scan.nextLine();
            }
        }
    }
}
